package collection;

import java.util.ArrayList;
import java.util.Collection;

public class CollectionDemo5 {
    public static void main(String[] args) {
        Collection<Point> c = new ArrayList<>();
        Point p = new Point(1,2);
        c.add(p);
        p.setX(2);
        System.out.println(p);
        System.out.println(c);
        long lmax = Integer.MAX_VALUE;
        long lmin = Long.MIN_VALUE;
        System.out.println(lmax);
        System.out.println(lmin);

    }
    public void doSome(Collection c, Point p){

    }
}
